<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<style>
*
{
	margin:0;
	padding:0;
}
p
{
	line-height:300px;
	font:40px;
	color:black;
	text-align:center;
}
div
{
	left:50%;
	top:50%;
	width:300px;
	height:300px;
	transform:rotateY(0deg);
	background:red;
	position:relative;
	transform-style:preserve-3d;
	transition:5s all;
	top:300px;
}
.q
{	width:300px;
	height:300px;
	background:yellow;
	position:absolute;
	z-index:2;
	left:0;
	top:0;
	transform: translateZ(150px);
}
.h
{
	background:blue;
	width:300px;
	height:300px;
	transform:translateZ(-150px);
	position:absolute;
	left:0;
	top:0;
}
.l
{
	position:absolute;
	left:0;
	top:0;
	background:#9cf;
	width:300px;
	height:300px;
	transform:rotateY(90deg) translateZ(150px);
	
}
.r
{
	position:absolute;
	left:0;
	top:0;
	background:#C9F;
	width:300px;
	height:300px;
	transform:rotateY(90deg) translateZ(-150px);
}
div:hover
{
	transform:rotateY(360deg);
	
}
</style>
<body>
<div>
<p class="q">你</p>
<p class="h">是</p>
<p class="l">智</p>
<p class="r">障</p>
<p></p>
<p></p>
</div>
</body>
</html>
